package com.ferry.lock.enumValue;

/**
 * Created by daiyong
 */
public enum Env {
	DEV(1, "dev"),
	TEST(2, "test"),
	STAGING(3, "staging"),
	PROD(4, "prod"),;

	private int id;
	private String env;

	Env(int id, String env) {
		this.id = id;
		this.env = env;
	}

	public String getEnv() {
		return env;
	}

	public static Env lookUpI(String env) {
		for (Env value : values()) {
			if (value.getEnv().equals(env)) {
				return value;
			}
		}
		return null;
	}
}
